package com.education.demouse.excel.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @Author: liftsail
 * @Date: 2022/10/17 11:19
 * @Description: 不积跬步无以至千里
 * Excel导入必填校验注解
 */
@Target({ElementType.FIELD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface ExcelValid {
    //表示该字段必须填写
    String message() default "导入有未填入的字段";

    //检验规则
    int length() default 0;

    //boolean isNecessary() default false;
}
